package com.lxmes.procontrol.service;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.lxmes.procontrol.domain.NcProOrderInfo;

/**
 * 工单明细Service接口
 * 
 * @author 张志煜
 * @date 2022-12-29
 */
public interface INcProOrderInfoService 
{
    /**
     * 查询工单明细
     * 
     * @param id 工单明细主键
     * @return 工单明细
     */
    public NcProOrderInfo selectNcProOrderInfoById(Long id);
    public NcProOrderInfo getBgOrderInfo(Long id);
    //获取报工所需物料
    public JSONObject getBgOrderinfoItem(Long id);

    /**
     * 查询工单明细列表
     * 
     * @param ncProOrderInfo 工单明细
     * @return 工单明细集合
     */
    public List<NcProOrderInfo> selectNcProOrderInfoList(NcProOrderInfo ncProOrderInfo);

    /**
     * 新增工单明细
     * 
     * @param ncProOrderInfo 工单明细
     * @return 结果
     */
    public int insertNcProOrderInfo(NcProOrderInfo ncProOrderInfo);
    //报工
    public int addBgOrderInfo(NcProOrderInfo ncProOrderInfo);
    //全部接单
    public int addJdAllOrderInfo(Long[] ids);


    /**
     * 修改工单明细
     * 
     * @param ncProOrderInfo 工单明细
     * @return 结果
     */
    public int updateNcProOrderInfo(NcProOrderInfo ncProOrderInfo);

    /**
     * 批量删除工单明细
     * 
     * @param ids 需要删除的工单明细主键集合
     * @return 结果
     */
    public int deleteNcProOrderInfoByIds(Long[] ids);

    /**
     * 删除工单明细信息
     * 
     * @param id 工单明细主键
     * @return 结果
     */
    public int deleteNcProOrderInfoById(Long id);
}
